package com.xgx.distqcp.Controller;

import com.xgx.distqcp.Controller.Base.BaseController;
import com.xgx.distqcp.Domain.Model.InfoOffer;
import io.jboot.web.controller.JbootController;
import io.jboot.web.controller.annotation.RequestMapping;

import java.util.Date;

@RequestMapping("/model")
public class ModelController extends BaseController {
    public void index(){
        InfoOffer infoOffer=new InfoOffer();
        infoOffer.setID(1);
        infoOffer.setAddDatetime(new Date());
        infoOffer.setOfferID(1);
        infoOffer.setTermID(1);
        infoOffer.setInfoID(1);
        infoOffer.saveOrUpdate();
        renderJson(infoOffer);

    }

}
